package com.iflytek.jcy.supervise.clue.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.iflytek.jcy.supervise.clue.dto.QueryPointDTO;
import com.iflytek.jcy.supervise.clue.entity.*;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * <p>
 * 任务表 Mapper 接口
 * </p>
 *
 * @author dgyu
 * @since 2022-10-20
 */
public interface TaskMapper extends BaseMapper<Task> {
    int addTask(TaskEntity taskEntity);

    int updateTask(TaskEntity taskEntity);

    int deleteTask(TaskEntity taskEntity);

    IPage<TaskLogVo> queryTaskLogListByID(IPage<TaskManageListBo> page,TaskManageListBo taskManageListBo);

    int queryException(Integer id);
    
    int queryDetailCount(Integer id);

    Task queryTaskById(TaskEntity taskEntity);

    IPage<Task> queryTaskManageList(IPage<Task> page,@Param("taskManageListBo")TaskManageListBo taskManageListBo);

    IPage<TaskDetail> queryTaskDetailList(IPage<TaskDetail> page,@Param("taskManageListBo")TaskManageListBo taskManageListBo);
    
    List<QueryPointDTO> selectPointsByTaskId(Integer taskId);
}
